package org.hypnus.e.util;

import java.util.List;

import org.hypnus.e.sub.EContext;
import org.hypnus.e.sub.EDataset;

import com.google.gson.Gson;

public abstract class JsonUtil {
	
	private static Gson gson = new Gson() ;
	
	public static Gson getGson(){
		return gson ;
	}

	public static EContext parseJson(String json){
		EContext eContext = gson.fromJson(json, EContext.class) ; ;
		List<EDataset> lstDst = eContext.getDatasets() ;
		
		
		return eContext ;
	}
	
	public static void toJson(EContext cxt){
		
	}
}
